<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<script>
    var name='${clinicMaster.name}';
    var sex= '${clinicMaster.sex}';
    var age='${clinicMaster.age}';
    var chargeType='${clinicMaster.chargeType}';
    if(name!=null && name!=undefined){
        $("#name").val(name);
    }
    if(sex!=null && sex!=undefined){
        //alert(sex);
        if(sex=='1'){
            $("#sex").val('${fns:getDictLabels(1,'SEX_DICT','')}');
        }else{
            $("#sex").val('${fns:getDictLabels(2,'SEX_DICT','')}');
        }
    }
    if(chargeType!=null && chargeType!=undefined){
         $("#chargeType").val(chargeType);
    }
    if(age!=null && age!=undefined){
        $("#age").val(age);
    }
    <c:if test="${page.list.size()==0}">
        toastr.warning("暂无收费记录");
    </c:if>

</script>
<section class="panel">
    <header class="panel-heading">收费主记录</header>
    <div class="panel-body">
        <table id="contentTable" class="table table-bordered mg-t datatable" checkbox="true">
            <thead>
            <tr>
                <th><input type="checkbox" id="clinicOrders"></th>
                <th>病人姓名</th>
                <th>项目类型</th>
                <th>收费标志</th>
                <th>执行人</th>
                <th>执行科室</th>
                <th>应收</th>
                <th>实收</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${page.list}" var="clinicOrders">
                <tr onclick="loadDiv('detailChage','${ctx}/finance/outpRcptMaster/findDetailCharge?ordersId=${clinicOrders.id}')">
                    <td><input type="checkbox" value="${clinicOrders.id}" name="clinicOrdersId"></td>
                    <td>${clinicOrders.clinicMaster.name}</td>
                    <td>${fns:getDictLabels(clinicOrders.itemClass,'BILL_ITEM_CLASS_DICT','')}</td>
                    <td>
                        <c:if test="${clinicOrders.chargeFlag=='0'}">未收费</c:if>
                    </td>
                    <td>${clinicOrders.implementUser}</td>
                    <td>${clinicOrders.implementDept}</td>
                    <td>${clinicOrders.costs}</td>
                    <td>${clinicOrders.charges}</td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
    </div>
</section>